package nl.hu.verbrandendephoenix.view;


import com.google.gwt.user.client.ui.Anchor;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.TextArea;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;

public class OpenConversation {
	private TextArea convA = new TextArea();
	private Label lab = new Label("Conversation partner: ");
	private TextBox tb = new TextBox();
	private Button b = new Button("Send");
	private HorizontalPanel hp = new HorizontalPanel();
	private HorizontalPanel convp = new HorizontalPanel();
	private VerticalPanel vp = new VerticalPanel();
	private Anchor a = new Anchor();
	
	public OpenConversation() {
	}
	
	public Panel get() {
		convp.add(lab);
		convp.add(a);
		vp.add(convp);
		vp.add(convA);
		tb.setWidth("25");
		tb.setText("Type hier uw bericht..");
		hp.add(tb);
		hp.add(b);
		vp.add(hp);
		return vp;
	}

	public Button getSendButton() {
		return b;
	}
	
	public Label getConvPartnerLabel() {
		return lab;
	}
	
	public TextBox getSendText() {
		return tb;
	}
	
	public TextArea getConversationArea() {
		return convA;
	}
	public Anchor getConvPartnerLink() {
		return a;
	}
}
